/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.xd.manager.impl;

import com.xy.biz.xd.dao.DocumentFlowNewAndModifyDao;
import com.xy.biz.xd.domain.bo.DocumentFlowBO;
import com.xy.biz.xd.domain.bo.DocumentFlowBorrowAndPrintAndDropBO;
import com.xy.biz.xd.domain.bo.DocumentFlowNewAndModifyBO;
import com.xy.biz.xd.domain.converter.DocumentFlowNewAndModifyConverter;
import com.xy.biz.xd.manager.DocumentFlowBorrowAndPrintAndDropManager;
import com.xy.biz.xd.manager.DocumentFlowManager;
import com.xy.biz.xd.manager.DocumentFlowNewAndModifyManager;
import com.xy.tool.util.BeanUtilsEx;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;


/**
 * @author wwj
 * @date 2021-3-6
 */
@Service
public class DocumentFlowBorrowAndPrintAndDropManagerImpl implements DocumentFlowBorrowAndPrintAndDropManager {
    @Autowired
    private DocumentFlowManager documentFlowManager;

    @Override
    public int saveDocumentFlowBorrowAndPrintAndDrop(DocumentFlowBorrowAndPrintAndDropBO documentFlowBorrowBO) {
        return documentFlowManager.saveDocumentFlow(documentFlowBorrowBO);
    }

    @Override
    public int saveAllDocumentFlowBorrowAndPrintAndDrop(List<DocumentFlowBorrowAndPrintAndDropBO> collection) {
        return documentFlowManager.saveAllDocumentFlow(new ArrayList<>(collection));
    }
}
